package com.lingsui.mode.strategy;

/**
 * User: caoping
 * Date: 2018/9/2 上午9:49
 */
public class MiniDuckSimulator {


    public static void main(String[] args) {


        Duck mallardDuck = new MallardDuck();

        mallardDuck.performFly();
        mallardDuck.performQuack();


        Duck model = new ModelDuck();

        model.performFly();

        model.setFlyBehavior(new FlyRocketPowered());

        model.performFly();
    }
}
